#include "stdafx.h"
#include "IRelease.h"

NAMESPACE_CORE_BEGIN

IRelease::IRelease()
{
	m_uixRef = 1;
}
IRelease::~IRelease()
{
	
}
void IRelease::AddRef()
{
	++ m_uixRef;
}

void IRelease::Release()
{
	-- m_uixRef;
	if(m_uixRef == 0)
		delete this;
}

NAMESPACE_CORE_END
